package com.erb.entity;

import java.sql.Timestamp;

/**
 * 项目
 */
public class Product {
	private Integer pid;
	private String pname; // 项目名
	private Double rate; // 利率
	private Timestamp startDate; // 开始时间
	private Integer lockDateMonth; // 锁定时间（单位：月）
	private Double purchaseAmount;// 起购金额
	private Double total; // 可加入总额
	private Integer status; // 状态：1、招标中，2、还款中(已满标)，3还款完毕
	private Integer type; // 项目类型：1新手标、2推荐标、3单车变摩托（平台发布）、4散标（贷款转换）
	private Double haveMoney;// 已投金额
	private Integer repayType;// 还款方式  1到期还本付息 2按月付息,到期还本 3等额本息

	private Timestamp successTime;// 成功交易时间
	private Integer loanId;// 贷款ID

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	public Timestamp getStartDate() {
		return startDate;
	}

	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	public Integer getLockDateMonth() {
		return lockDateMonth;
	}

	public void setLockDateMonth(Integer lockDateMonth) {
		this.lockDateMonth = lockDateMonth;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Double getPurchaseAmount() {
		return purchaseAmount;
	}

	public void setPurchaseAmount(Double purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
	}

	public Timestamp getSuccessTime() {
		return successTime;
	}

	public void setSuccessTime(Timestamp successTime) {
		this.successTime = successTime;
	}

	public Integer getLoanId() {
		return loanId;
	}

	public void setLoanId(Integer loanId) {
		this.loanId = loanId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Double getHaveMoney() {
		return haveMoney;
	}

	public void setHaveMoney(Double haveMoney) {
		this.haveMoney = haveMoney;
	}

	public Integer getRepayType() {
		return repayType;
	}

	public void setRepayType(Integer repayType) {
		this.repayType = repayType;
	}

	@Override
	public String toString() {
		return "Product{" +
				"pid=" + pid +
				", pname='" + pname + '\'' +
				", rate=" + rate +
				", startDate=" + startDate +
				", lockDateMonth=" + lockDateMonth +
				", purchaseAmount=" + purchaseAmount +
				", total=" + total +
				", status=" + status +
				", type=" + type +
				", haveMoney=" + haveMoney +
				", repayType=" + repayType +
				", successTime=" + successTime +
				", loanId=" + loanId +
				'}';
	}
}
